<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="d" tagdir="/WEB-INF/tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Show Syndrome</title>
<link rel="stylesheet" href="<c:url value = '/css/style.css' /> "
	type="text/css" media="screen, projection" />
</head>
<body>

	<jsp:useBean id="syndromeController" scope="application"
		class="com.immunology.controller.SyndromeController" />

	<div id="wrapper" class="indexPage">
		<d:header />
		<div id="container">
			<div id="middle">
				<div id="sideLeft">
					<d:adminMenu />
				</div>
				<div id="content">
					<form action="ShowSyndromeServlet" method="post">
						<table>
							<tr>
								<td width="15%">Id</td>
								<td>Назва синдрому</td>
							</tr>
							<c:forEach items="${syndromeController.syndromeFromDatabase}"
								var="syndrome">
								<tr>
									<td><c:out value="${syndrome.id}" />
									</td>
									<td><c:out value="${syndrome.name}" />
									</td>
									<td><input type="submit" name="${syndrome.id}"
										value="delete"></td>
								</tr>
							</c:forEach>
						</table>
					</form>
				</div>
			</div>
			<d:footer />
		</div>
	</div>


</body>
</html>